# field_management/urls.py
from django.urls import path
from . import views

app_name = 'field_management'

urlpatterns = [
    path('', views.FieldListView.as_view(), name='field_list'),
    path('<int:pk>/', views.FieldDetailView.as_view(), name='field_detail'),
    path('add/', views.FieldCreateView.as_view(), name='field_add'),
    path('<int:pk>/edit/', views.FieldUpdateView.as_view(), name='field_edit'),
    path('<int:pk>/delete/', views.FieldDeleteView.as_view(), name='field_delete'),
    path('locations/json/', views.field_locations_json, name='field_locations_json'),
]